﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RetreatSchedule.aspx.cs" Inherits="RedemptoristRetreatCenter.RetreatSchedule" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1><%--    <asp:RegularExpressionValidator id=RegularExpressionValidator2 runat="server" ErrorMessage="&nbsp;&nbsp;Please enter a valid time." ForeColor="Red" ControlToValidate="endTime" ValidationExpression="(?<Time>^(?:0?[1-9]:[0-5]|1(?=[012])\d:[0-5])\d(?:[ap]m)?)"></asp:RegularExpressionValidator>--%>Scheduled Retreat</h1>
            </hgroup>
            <table style="width: 100%;">
                <tr>
                    <td class="auto-style2">Retreat:&nbsp;</td>
                    <td class="auto-style2">
                        <asp:DropDownList ID="retreatList" runat="server" Height="22px" Width="331px" OnLoad="retreatList_OnLoad">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="retreatList" runat="server" InitialValue="--Select a Retreat --"
                            ErrorMessage="&nbsp;&nbsp;Please select a Retreat" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style2">Director:&nbsp;</td>
                    <td class="auto-style2">
                        <asp:DropDownList ID="staffList" runat="server" Height="22px" Width="326px" OnLoad="staffList_OnLoad" >
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="staffList" runat="server" InitialValue="--Select a Retreat Director --"
                            ErrorMessage="&nbsp;&nbsp;Please select a Retreat Director" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style2">Start Date:&nbsp;</td>
                    <td class="auto-style2">
                        <asp:TextBox ID="startDate" runat="server"></asp:TextBox>
                        <asp:CompareValidator ID="dateValidator1" runat="server" Type="Date" Operator="DataTypeCheck" ControlToValidate="startDate" ErrorMessage="&nbsp;&nbsp;Please enter a valid date." ForeColor="Red"></asp:CompareValidator></td>
                </tr>
                <tr>
                    <td class="auto-style2">Start Time:&nbsp;</td>
                    <td class="auto-style2">
                        <asp:TextBox ID="startTime" runat="server"></asp:TextBox>
                        <%--  <asp:RegularExpressionValidator id=RegularExpressionValidator1 runat="server" ErrorMessage="&nbsp;&nbsp;Please enter a valid time." ForeColor="Red" Display="Dynamic" ControlToValidate="startTime" ValidationExpression="(?<Time>^(?:0?[1-9]:[0-5]|1(?=[012])\d:[0-5])\d(?:[ap]m)?)"></asp:RegularExpressionValidator> --%> 
                    </td>
                </tr>
                <tr>
                    <td class="auto-style2">End Date:&nbsp;</td>
                    <td class="auto-style2">
                        <asp:TextBox ID="endDate" runat="server"></asp:TextBox>
                        <asp:CompareValidator ID="dateValidator2" runat="server" Type="Date" Operator="DataTypeCheck" ControlToValidate="endDate" ErrorMessage="&nbsp;&nbsp;Please enter a valid date." ForeColor="Red"></asp:CompareValidator></td>
                </tr>
                <tr>
                    <td class="auto-style2">End Time:&nbsp;</td>
                    <td class="auto-style2">
                        <asp:TextBox ID="endTime" runat="server"></asp:TextBox>
                        <%--    <asp:RegularExpressionValidator id=RegularExpressionValidator2 runat="server" ErrorMessage="&nbsp;&nbsp;Please enter a valid time." ForeColor="Red" ControlToValidate="endTime" ValidationExpression="(?<Time>^(?:0?[1-9]:[0-5]|1(?=[012])\d:[0-5])\d(?:[ap]m)?)"></asp:RegularExpressionValidator>--%>
                    </td>
                </tr>
            </table>

            <br />
            <br />
            &nbsp;&nbsp;<asp:Button runat="server" ID="scheduleRetreatButton" OnClick="scheduleRetreatButton_Click" Text="Submit" ForeColor="#000000"></asp:Button>&nbsp;&nbsp;
            &nbsp;&nbsp;<asp:Button runat="server" ID="attendanceButton" OnClick="attendanceButton_Click" Text="Attendance" ForeColor="#000000"></asp:Button>&nbsp;&nbsp;
            <asp:Literal ID="statusMessage" runat="server"></asp:Literal>
        </div>
    </section>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>
